﻿#include "bookTicketPOJO.h"

bookTicketPOJO::bookTicketPOJO(std::string trainCode, std::string startStation, std::string endStation,
    std::string departTime, std::string arriveTime, std::string timeCost, std::string travelDate) {
    this->trainCode = trainCode;
    this->startStation = startStation;
    this->endStation = endStation;
    this->departTime = departTime;
    this->arriveTime = arriveTime;
    this->timeCost = timeCost;
    this->travelDate = travelDate;
}

std::string bookTicketPOJO::getTrainCode() const { return trainCode; }
std::string bookTicketPOJO::getStartStation() const { return startStation; }
std::string bookTicketPOJO::getEndStation() const { return endStation; }
std::string bookTicketPOJO::getDepartTime() const { return departTime; }
std::string bookTicketPOJO::getArriveTime() const { return arriveTime; }
std::string bookTicketPOJO::getTimeCost() const { return timeCost; }
std::string bookTicketPOJO::getTravelDate() const { return travelDate; }

void bookTicketPOJO::setTrainCode(const std::string& value) { trainCode = value; }
void bookTicketPOJO::setStartStation(const std::string& value) { startStation = value; }
void bookTicketPOJO::setEndStation(const std::string& value) { endStation = value; }
void bookTicketPOJO::setDepartTime(const std::string& value) { departTime = value; }
void bookTicketPOJO::setArriveTime(const std::string& value) { arriveTime = value; }
void bookTicketPOJO::setTimeCost(const std::string& value) { timeCost = value; }
void bookTicketPOJO::setTravelDate(const std::string& value) { travelDate = value; }
